from django.conf.urls.defaults import patterns, include, url
from django.contrib.auth.views import login, logout
from django.conf import settings

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
                       
    # Examples:
    #url(r'^$', 'mysites.views.home', name='home'),
    # url(r'^mysites/', include('mysites.foo.urls')),
	(r'^accounts/login/$',  login),
    (r'^accounts/logout/$', logout),
    (r'^medias/(?P<path>.*)$','django.views.static.serve',{'document_root':settings.MEDIA_ROOT}),
    # Uncomment the admin/doc line below to enable admin documentation:
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    (r'^i18n/', include('django.conf.urls.i18n')),
    (r'^couch/', include('mysites.couch.urls')),
    (r'^comments/', include('mysites.comments.urls')),
)
